package org.scohen.juploadr.util;

import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Handler;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;

public class LogUtil {

    public static void init() {
        Handler h;
        try {
            h = new FileHandler("juploadr.log");
            h.setFormatter(new SimpleFormatter());
            Logger.getLogger("").addHandler(h);
            
        } catch (SecurityException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
       
    }
}
